package cu.tedu.io;

import java.util.ArrayList;
import java.util.Collection;

public class Test5 {
    public static void main(String[] args) {

        Collection c = new ArrayList();
            c.add("hello");
        c.add("hello");
        c.add("java");
        c.add(10);

        c.add("a");
        c.add("e");


       // System.out.println(c.remove("e"));//移除
        System.out.println(c.contains("java"));//判断包含
        System.out.println(c.size());//长度
        System.out.println(c);

        for(int i = 0 ;i<c.size();i++){
            System.out.println(c.toArray()[i]);
        }




    }
}
